/*
 * Vectrics 
 * Created on Jan 31, 2004
 *
 */
package org.vectrics.client.webclient;

/**
 * @author mmoore
 */
public class ResponseResult {
	private String description = null;
	
	public static ResponseResult NEED_AUTH = new ResponseResult("Needs authentication");
	public static ResponseResult BAD_AUTH = new ResponseResult("Bad authentication");
	public static ResponseResult NON_AUTH_ERROR = new ResponseResult("Application error");
	public static ResponseResult OK = new ResponseResult("Ok");
	public static ResponseResult SERVER_NOT_FOUND = new ResponseResult("Server not found");


	public ResponseResult(String description) {
		super();
		this.description = description;
	}
	
	public String getDescription() {
		return(description);
	}

	public boolean equals(Object other) {
		ResponseResult otherResult = (ResponseResult)other;
		if (this.getDescription().equals(otherResult.getDescription()))
			return true;
		else
			return false;
	}
}
